package com.livew.framework.base.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.livew.framework.base.model.SysUser;

@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

	SysUser selectUserByUsername(String username);

	List<SysUser> selectList(SysUser user);

	/**
	 * 根据手机号查询
	 * 
	 * @param phone
	 * @return
	 */
	SysUser selectUserByPhone(String phone);

	/**
	 * 根据邮箱查询
	 * 
	 * @param email
	 * @return
	 */
	SysUser selectUserByEmail(String email);

	/**
	 * 登录校验
	 * @param user
	 * @return
	 */
	List<SysUser>  selectLogin(SysUser user);

}